import request from '@/utils/requestExam'

//根据条件查询考试计划表
export function getExamPlanList(query){
  return request({
    url: "/api/uf/boostor/exam/plan/ExamPlanRest/searchByPage/v1",
    method: "post",
    data: query
  })
}
//根据id查询考试计划表
export function getExamPlanById(id){
  return request({
    url: "/api/uf/boostor/exam/plan/ExamPlanRest/selectExamPlanById/" + id,
    method: "get"
  })
}

//查看考试计划详情
export function getExamPlanDetail(id){
  return request({
    url: "/api/uf/boostor/exam/plan/ExamPlanRest/getExamPlanById/" + id,
    method: "get"
  })
}

//新增考试计划信息
export function addExamPlan(data){
  return request({
    url: "/api/uf/boostor/exam/plan/ExamPlanRest/add/v1",
    method: "post",
    data: data
  })
}

//延期考试计划
export function postponeExamPlan(data){
  return request({
    url: "/api/uf/boostor/exam/plan/ExamPlanRest/postponeExamPlan/v1",
    method: "post",
    data: data
  })
}

//取消考试计划
export function cancelExamPlan(data){
  return request({
    url: "/api/uf/boostor/exam/plan/ExamPlanRest/cancelExamPlan/v1",
    method: "post",
    data: data
  })
}

//修改考试计划表
export function updateExamPlan(data){
  return request({
    url: "/api/uf/boostor/exam/plan/ExamPlanRest/edit/v1",
    method: "put",
    data: data
  })
}
//删除考试计划表
export function deleteExamPlan(planIds){
  return request({
    url: "/api/uf/boostor/exam/plan/ExamPlanRest/remove/" + planIds,
    method: "delete"
  })
}
